package Ara_Con;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import Ara_Dao.RboardDao;

public class RboardDelete implements Controller {

private RboardDao rboardDao;
	
	public void setRboardDao(RboardDao rboardDao) {
		this.rboardDao = rboardDao;
	}
	


	@Override
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse arg1) throws Exception {
		
		int rb_no=Integer.parseInt(request.getParameter("rb_no"));
		
		rboardDao.RboardDelete(rb_no);
		
		ModelAndView mav = new ModelAndView();
		mav.setViewName("RboardDelete");
		return mav;
	}
	
	
}
